Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: need help with teleport, please

  1. #1

    Default need help with teleport, please

    G'day folks,
    I've tried the Radiant way of teleporting and its very buggy to say the least. ("trigger_teleport" & "func_teleportdest")
    I've looked at several scripts for teleporting but they all seem to have bucket loads of unwanted do-dads.

    I'd like a simple teleport from A to B. Nothing fancy.
    There will be a return teleport from B to A but offset by a few steps so they don't clash.

    No lights, orbs, bells or whistle. No random arrays of destinations, no damage, sound effects or changing the colour of your underwear.
    Just a straight forward seamless, stealth, teleport.
    But there is one hitch. I need to turn the player 90 degrees during the teleportation.

    As most downloads don't include the map file I'd appreciate confirmation on what is required for triggers and destination.
    I am currently trying "trigger_multiple" with only destination co-ordinates taken from the "func_teleportdest" before deleting them.
    " -3412 1340 256 " and " 3322 -2 -416 "

    Any help will be appreciated, thank you.

  2. #2
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Hi,

    You could just used a trigger_multiple with the origin set to where you want it to start.
    Then just tele the player to the desired location.
    Use face to turn the player a specific direction.

    Example
    Code:
    local.trig = spawn trigger_use origin (insert original coords here)
    local.trig setsize ( -10 -10 0 ) ( 10 10 70 )
    while(1)
    {
    local.trig waittill trigger
    local.player = parm.other
    local.player tele (insert destination)
    local.player face ( 0 90 0 ) // faces a direction
    wait 2
    }

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  3. #3

    Default

    G'day Purple.

    Cheers for that, mate.

  4. #4

    Default

    Quote Originally Posted by Purple Elephant1au View Post
    Hi,

    You could just used a trigger_multiple with the origin set to where you want it to start.

    Example
    Code:
    local.trig = spawn trigger_use origin (insert original coords here)
    ..
    I'm unsure of how to get the coords for the trigger.
    In Radiant top view the trigger is:
    x 3472, y 1272
    and front view says:
    z 1264
    so I tried:
    Code:
    local.trig = spawn trigger_use origin (3472 1272 1264)
    but nothing happened.
    I've also just noticed you said "spawn trigger_use" so I have also tried it by hitting my "use" key at the trigger.
    I have since changed that to "spawn trigger_multiple" and tried it in game again.
    Still nothing.

    I have uploaded the map to Dropbox if you care to take a look.

    https://www.dropbox.com/s/mw74notod0...zzard.pk3?dl=0

  5. #5
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Easiest way to get coords is to play the map, go to the desired position and type in console 'coords', they are then printed into your console. Also prints the angle you are facing aswell which is used for the face command. I am on my laptop at the moment and dont have mohaa installed to test.

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  6. #6

    Default

    Cheers.

    edit:
    It said unknown command "coords"
    I tried :
    coords
    "coords"
    'coords'
    co ords
    co-ords
    coordinates

    They are all unknown commands, apparently.
    Last edited by AccadaccA; November 7th, 2017 at 08:18 PM.

  7. #7
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Sorry its just 'coord'
    See <http://gronnevik.se/rjukan/uploads/Main/g_allclasses.html>

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  8. #8

    Default

    No probs, easy mistake.

    Hmm, still not teleporting.
    I tried with and without the coord numbers following the decimal points.

  9. #9
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,071

    Default

    Maybe try something like this:
    local.trig = spawn trigger_use
    local.trig.origin = (3472 1272 1264)

    local.trig setsize ( -10 -10 0 ) ( 10 10 70 )

  10. #10

    Default

    what do you mean by saying trigger_teleport & func_teleportdest are buggy?

    you must be doing something wrong, because they have always worked well for me

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •